﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Result2.aspx.cs" Inherits="DichVuQuan4.Result2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<input type="hidden" id="optSelected" value="<%=optSelectedValue%>" /> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

 <!--Kết quả tìm kiếm-->
        <div class="leftpage">
    	    <div class="leftcontent">
        	    <div class="result_head">Kết quả tìm kiếm cho:<strong><%=keyword%></strong></div>
                <div id="result" class="result_body" style="overflow:scroll">
            	    <ul>
                    <%for (int i = 0; i < dt.Rows.Count; i++)
                      { 
                            /*string TenDiaDiem = ddBUS.getTenDiaDiem(Int32.Parse(dt.Rows[i]["MaTenDiaDiem"].ToString()));
                            string TenDuong = dBUS.getDuongById(Int32.Parse(dt.Rows[i]["MaDuong"].ToString()));
                            string TenPhuong = pBUS.getPhuongById(Int32.Parse(dt.Rows[i]["MaPhuong"].ToString()));
                            string TenQuanHuyen = qBUS.getQuanHuyenById(Int32.Parse(dt.Rows[i]["MaQuanHuyen"].ToString()));
                            */
                          string TenDiaDiem = dt.Rows[i]["TenDiaDiem"].ToString();
                          string TenDuong = dt.Rows[i]["TenDuong"].ToString();
                          string TenPhuong = dt.Rows[i]["TenPhuong"].ToString();
                          string TenQuanHuyen = dt.Rows[i]["TenQuanHuyen"].ToString();
                     %>
                            <li onclick="set_map(<%=dt.Rows[i]["ViDo"].ToString()%>,<%=dt.Rows[i]["KinhDo"].ToString()%>,'<%=TenDiaDiem%>');">
                            <strong><%=TenDiaDiem%></strong><br />
                            <small><%=dt.Rows[i]["SoNha"].ToString() + " " + TenDuong + ", Phường " +  TenPhuong + ", Quận " +  TenQuanHuyen %></small><br />
                            <small><%//=dt.Rows[i]["ChuThich"].ToString() %></small>
                        </li>
                       <%} %>
                    </ul>
                </div>
                <div class="result_foot">
            	    &lt;&lt; <a class="active_ipage" href="#">1</a><a href="#">2</a><a href="#">3</a><a href="#">4</a><a href="#">5</a><a href="#">6</a><a href="#">7</a><a href="#">8</a> &gt;&gt;
                </div>
            </div>
        </div>

        <!--Bản đồ-->
        <div class="content" id="dynamic_content">
            <iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q=10.759055,106.702825+(Quận+4,+TP+HCM)&hl=en&ie=UTF8&ll=10.759055,106.702825&t=m&z=15&vpsrc=0&iwloc=A&output=embed"></iframe>
            <!--
                q=lat,lan: Tọa độ
                hl=en: Ngôn ngữ hiển thị
                ll=lat,lan: Tọa độ tương tự q
                z=15: Zoom
            -->
        </div>
</asp:Content>
